package com.ruoyi.bbsAdmin.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 板块对象 plate
 * 
 * @author ruoyi
 * @date 2022-04-01
 */
@TableName(value = "bbs_plate")
public class Plate implements Serializable
{
    private static final long serialVersionUID = 1L;

//    plateid,cateid,userid,schoolid,name,introduction,portraiturl,backimgurl,contentnum,usernum,upnum,downnum,platestate,
//
//    search_value,create_by,create_time,update_by,update_time,remark,params 这里有问题

    /** 唯一主键 */
    private String plateid;

    /** 板块的类目 */
    @Excel(name = "板块的类目")
    private Integer cateid;

    /** 板块创建者id */
    @Excel(name = "板块创建者id")
    private String userid;

    /** 板块所属学校id */
    @Excel(name = "板块所属学校id")
    private Long schoolid;

    /** 板块名称 */
    @Excel(name = "板块名称")
    private String name;

    /** 板块简介 */
    @Excel(name = "板块简介")
    private String introduction;

    /** 图标URL */
    @Excel(name = "图标URL")
    private String portraiturl;

    /** 背景图片URL */
    @Excel(name = "背景图片URL")
    private String backimgurl;

    /** 当前板块拥有帖子数量 */
    @Excel(name = "当前板块拥有帖子数量")
    private Long contentnum;

    /** 板块关注人数 */
    @Excel(name = "板块关注人数")
    private Long usernum;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Long upnum;

    /** “踩”数量 */
    @Excel(name = "“踩”数量")
    private Long downnum;

    /** 板块状态。0：正常；1：需要审核；2：已下架； */
    @Excel(name = "板块状态。0：正常；1：需要审核；2：已下架；")
    private Integer platestate;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatetime;

    public void setPlateid(String plateid) 
    {
        this.plateid = plateid;
    }

    public String getPlateid() 
    {
        return plateid;
    }
    public void setCateid(Integer cateid) 
    {
        this.cateid = cateid;
    }

    public Integer getCateid() 
    {
        return cateid;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setSchoolid(Long schoolid) 
    {
        this.schoolid = schoolid;
    }

    public Long getSchoolid() 
    {
        return schoolid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setPortraiturl(String portraiturl) 
    {
        this.portraiturl = portraiturl;
    }

    public String getPortraiturl() 
    {
        return portraiturl;
    }
    public void setBackimgurl(String backimgurl) 
    {
        this.backimgurl = backimgurl;
    }

    public String getBackimgurl() 
    {
        return backimgurl;
    }
    public void setContentnum(Long contentnum) 
    {
        this.contentnum = contentnum;
    }

    public Long getContentnum() 
    {
        return contentnum;
    }
    public void setUsernum(Long usernum) 
    {
        this.usernum = usernum;
    }

    public Long getUsernum() 
    {
        return usernum;
    }
    public void setUpnum(Long upnum) 
    {
        this.upnum = upnum;
    }

    public Long getUpnum() 
    {
        return upnum;
    }
    public void setDownnum(Long downnum) 
    {
        this.downnum = downnum;
    }

    public Long getDownnum() 
    {
        return downnum;
    }
    public void setPlatestate(Integer platestate) 
    {
        this.platestate = platestate;
    }

    public Integer getPlatestate() 
    {
        return platestate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("plateid", getPlateid())
            .append("cateid", getCateid())
            .append("userid", getUserid())
            .append("schoolid", getSchoolid())
            .append("name", getName())
            .append("introduction", getIntroduction())
            .append("portraiturl", getPortraiturl())
            .append("backimgurl", getBackimgurl())
            .append("contentnum", getContentnum())
            .append("usernum", getUsernum())
            .append("upnum", getUpnum())
            .append("downnum", getDownnum())
            .append("platestate", getPlatestate())
            .append("createtime", getCreatetime())
            .append("updatetime", getUpdatetime())
            .toString();
    }
}
